<?php

/**
 * Article form.
 *
 * @package    proba3
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class ArticleForm extends BaseArticleForm {

    public function configure() {
        $this->embedI18n(array('hr','en'));
//        $this->mergeForm(new ArticleTranslationForm());
//        $this->validatorSchema['lang'] = new sfValidatorPass();
//        $this->validatorSchema['lang'] = new sfValidatorChoice
//        (
//            array
//            (
//                'choices' => array
//                (
//                    $this->getObject()->get('lang')
//                ),
//                'empty_value' => $this->getObject()->get('lang'),
//                'required' => false
//            )
//        );
//        $this->setDefault('lang', 'hr_HR');
        return parent::configure();
    }

}
